package com.JHC.mmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.JHC.mmall.enums.GenderEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author test
 * @since 2020-05-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    /** =========================补充缺失注解===============================**/

                            /**补充缺失的注解,主键值为id,类型为自动**/
      private Integer id;


    /**
     * 性别值(0->男，1—>女）
     */
      @TableField(exist = false)
      private Integer genderCode;

                                      /**补充缺失的注解，要求：插入时调用，更新时不调用**/
      private LocalDateTime createTime;


                                      /**补充缺失的注解，要求：插入时和更新时都调用**/
      private LocalDateTime updateTime;

    public Object getLoginName() {
        return null;
    }


    /** =========================补充缺失实体类===============================**/

    /**
     * 题目：根据数据库中user表，补充缺失的实体类，并根据提示补充相应注解
     */







}
